package com.springboot.frame.key;

import java.util.UUID;

/**
 * 32位去横线UUID主键生成器
 *
 * @author liheng
 */
public class UUID32KeyGenerator implements AutoKeyGenerator<String> {

  /**
   * INSTANCE实例
   */
  public static final UUID32KeyGenerator INSTANCE = new UUID32KeyGenerator();

  @Override
  public String generateId() {
    return UUID.randomUUID().toString().replace("-", "");
  }

}
